::-------------------------------------------------------------------------------------------------------------------
:: LiveResult provided by picoTIMING.ch 
:: Upload-Datei 
::
:: Kurzanleitung: 
:: Dieses bat richtig einstellen (set event --> ORware WKname)
:: ORclient mit Server verbinden und Resultatdatei auf C: exportieren (unter Service)
::-------------------------------------------------------------------------------------------------------------------

@echo off

:: change the following line to the ORserver event name (directory name)
set event=BELPATHLON2015
set origin=C:\

:: let this as it is
set url=https://pico-timing.googlecode.com/svn/trunk/
set repo=pico-timing
set file=%event%_BasicResults-1.csv
set remotefile=%event%.csv
set interval=10

set usr=picotiming@gmail.com
set pw=jJ8nJ4SE3cY2

set remotePath=%url%

cd ..
svn checkout %remotePath% %repo% --username %usr% --password %pw%
cd %repo%
copy /Y "%origin%%file%" "%remotefile%"
svn add %remotefile%

:Start
copy /Y "%origin%%file%" "%remotefile%"

svn commit -m "UpdateRanking_%event%@%Time%" %remotefile% --username %usr% --password %pw%

ping -n %interval% 127.0.0.1>nul
GOTO :Start